Skip to content

feat: Add application service (bridges) support#394

Draft
sampaiodiego wants to merge 42 commits into
mainfrom
add-application-service-support
Draft

feat: Add application service (bridges) support#394
sampaiodiego wants to merge 42 commits into
mainfrom
add-application-service-support

Conversation

@sampaiodiego

Copy link
Copy Markdown
Member

No description provided.

@coderabbitai

coderabbitai Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bd2514d0-151b-4d81-8ab2-7dcd889ec66c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov-commenter

codecov-commenter commented Jun 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 43.00518% with 550 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.78%. Comparing base (9052057) to head (3add6a6).

Files with missing lines Patch % Lines
...service/src/services/transaction-sender.service.ts 9.02% 121 Missing ⚠️
...es/appservice/src/services/registration.service.ts 20.93% 68 Missing ⚠️
packages/federation-sdk/src/sdk.ts 35.64% 65 Missing ⚠️
...ce/src/repositories/appservice-state.repository.ts 8.06% 57 Missing ⚠️
...es/appservice/src/services/event-router.service.ts 57.25% 56 Missing ⚠️
...federation-sdk/src/repositories/user.repository.ts 7.69% 36 Missing ⚠️
...vice/src/repositories/appservice-txn.repository.ts 17.24% 24 Missing ⚠️
...pservice/src/services/namespace-matcher.service.ts 70.37% 24 Missing ⚠️
...ederation-sdk/src/services/event-sender.service.ts 73.84% 17 Missing ⚠️
...ckages/federation-sdk/src/services/room.service.ts 62.22% 17 Missing ⚠️
... and 7 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #394      +/-   ##
==========================================
- Coverage   50.64%   49.78%   -0.86%     
==========================================
  Files         101      112      +11     
  Lines       11533    12479     +946     
==========================================
+ Hits         5841     6213     +372     
- Misses       5692     6266     +574     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sampaiodiego sampaiodiego force-pushed the add-application-service-support branch from 1fa0373 to 4ee3063 Compare June 2, 2026 19:50
@sampaiodiego sampaiodiego force-pushed the add-application-service-support branch from 4ee3063 to 5bfea59 Compare June 2, 2026 21:22
return this.roomService.joinUser(...args);
}

async joinXMPPChatRoom(roomAlias: string, sender: UserID) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this implementation might live somewhere else

}

// this is for querying local users which does not have the server name in the username field
return this.userRepository.findByUsername(userId.split(':')[0]?.slice(1));

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this really needed?

const { registration } = appservice;

if (!registration.url) {
return; // No URL configured, skip

@sampaiodiego sampaiodiego Jun 26, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should show at least a warn log? or maybe even throw an error

// receive transactions for events in their namespaces.
const eventRouter = container.resolve(EventRouterService);
const stateService = container.resolve(StateService);
eventRouter.setRoomStateResolver(async (roomId) => {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure this is useful and needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants